.message {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 100;
    padding: 12px 10px;
    text-align: center;
    color: #000;
    background: #FFF;
    border-radius: 2px;
    box-sizing: border-box;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.1);
    animation-name: messageShow;
    animation-duration: 0.5s;
    animation-timing-function: ease;
}

.icon {
    font-size: 18px;
    margin-right: 5px;
}

@keyframes messageShow {
    from {
        top: -45px;
    }

    to {
        top: 20px;
    }
}

@keyframes messageHide {
    from {
        top: 20px;
    }

    to {
        top: -45px;
    }
}